import type { pageParams } from '@/types/global'
import type { resultData } from '@/types/hotRecommend'
import { http } from '@/utils/http'
type dataType = pageParams & { subType: string }
/**
 * 热门推荐通用接口
 * @param url 接口路径
 * @param data 传参
 */
export const hotRecommendApi = (url: string, data?: dataType) => {
  return http<resultData>({
    method: 'GET',
    url,
    data,
  })
}
